spacepaste

  1.  
  2. avr-gcc -g -Wall -O2 -mmcu=attiny85 -I /usr/avr/include -Wl,-Map,test.map -o test.elf main.c -lm
  3. In file included from /usr/avr/include/avr/io.h:99:0,
  4. from main.c:3:
  5. main.c:50:20: error: expected identifier or ‘(’ before ‘volatile’
  6. #define UARTTXPORT PORTB
  7. ^
  8. main.c:92:2: note: in expansion of macro ‘UARTTXPORT’
  9. UARTTXPORT |= (1 << UARTTXBIT);
  10. ^~~~~~~~~~
  11. main.c:50:20: error: expected ‘)’ before ‘(’ token
  12. #define UARTTXPORT PORTB
  13. ^
  14. main.c:92:2: note: in expansion of macro ‘UARTTXPORT’
  15. UARTTXPORT |= (1 << UARTTXBIT);
  16. ^~~~~~~~~~
  17. main.c:93:2: warning: data definition has no type or storage class
  18. usart_bitdelay();
  19. ^~~~~~~~~~~~~~
  20. main.c:93:2: warning: type defaults to ‘int’ in declaration of ‘usart_bitdelay’ [-Wimplicit-int]
  21. main.c:93:2: error: conflicting types for ‘usart_bitdelay’
  22. main.c:65:6: note: previous definition of ‘usart_bitdelay’ was here
  23. void usart_bitdelay() {
  24. ^~~~~~~~~~~~~~
  25. main.c:94:1: error: expected identifier or ‘(’ before ‘}’ token
  26. }
  27. ^
  28. In file included from main.c:4:0:
  29. main.c:96:42: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
  30. static FILE mystdout = FDEV_SETUP_STREAM(usart_putchar, NULL, _FDEV_SETUP_WRITE);
  31. ^
  32. main.c:96:42: note: (near initialization for ‘mystdout.put’)
  33. main.c: In function ‘getTemp’:
  34. main.c:101:2: warning: implicit declaration of function ‘nop’ [-Wimplicit-function-declaration]
  35. nop();
  36. ^~~
  37. At top level:
  38. main.c:96:13: warning: ‘mystdout’ defined but not used [-Wunused-variable]
  39. static FILE mystdout = FDEV_SETUP_STREAM(usart_putchar, NULL, _FDEV_SETUP_WRITE);
  40. ^~~~~~~~
  41. make: *** [Makefile:34: test.elf] Error 1
  42.